//
//  YQImagePickerBaseVC.m
//  Pension
//
//  Created by tbb on 2019/6/6.
//  Copyright © 2019  YIQI. All rights reserved.
//

#import "YQImagePickerBaseVC.h"

@interface YQImagePickerBaseVC ()

@end

@implementation YQImagePickerBaseVC

- (instancetype)initWithMaxImagesCount:(NSInteger)maxImagesCount delegate:(id<TZImagePickerControllerDelegate>)delegate {
    if (self = [super initWithMaxImagesCount:maxImagesCount delegate:delegate]) {
        self.sortAscendingByModificationDate = NO;
        
        self.showSelectedIndex = YES;
        self.iconThemeColor = kAPPThemeColor;//[UIColor colorWithHexString:@"#5E9EE8"];
        //确定按钮
        self.oKButtonTitleColorNormal = kAPPThemeColor;//[UIColor colorWithHexString:@"#A8C4E5"];//kYJTitleColor;
        self.oKButtonTitleColorDisabled = [UIColor colorWithHexString:@"#A8C4E5"];//kColor202;
        
        self.naviBgColor = UIColor.whiteColor;
        self.naviTitleColor = [UIColor colorWithHexString:@"#414141"];
        
        self.barItemTextColor = [UIColor colorWithHexString:@"#414141"];
        self.cannotSelectLayerColor = kAPPThemeColor;//[UIColor colorWithHexString:@"#5E9EE8"];
        
        self.statusBarStyle = UIStatusBarStyleDefault;
        
        UIImage *photoNumberImage = [UIImage tz_imageNamedFromMyBundle:@"photo_number_icon"];
        self.photoNumberIconImage = [photoNumberImage qmui_imageWithBlendColor:kAPPThemeColor];
        
        UIImage *photoOriginSelImage = [UIImage tz_imageNamedFromMyBundle:@"photo_original_sel"];
        self.photoOriginSelImage = [photoOriginSelImage qmui_imageWithBlendColor:kAPPThemeColor];
        //photo_sel_photoPickerVc
        UIImage *photoSelImage = [UIImage tz_imageNamedFromMyBundle:@"preview_number_icon"];
        self.photoSelImage = [photoSelImage qmui_imageWithBlendColor:kAPPThemeColor];
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupLeftItem];
}

-(void)setupLeftItem{
    self.navLeftBarButtonSettingBlock = ^(UIButton *leftButton) {
        leftButton.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 10);
        [leftButton setImage:YQIMG(@"nav_back_sIcon") forState:(UIControlStateNormal)];
    };
}

@end
